package com.huashizhaoxi.lionapp.service;

import com.huashizhaoxi.lionapp.entity.Address;
import com.huashizhaoxi.lionapp.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService {

    List<User> getAllUser();

    User getUserByOpenId(String open_id);

    User getUserById(int id);

    int addUser(User user);

    int modifyUser(User user);

    List<Address> getAllAddress(int id);

    int addAddress(Address address);

    int modifyAddress(Address address);

    List<User> searchUser(String text);

    int changeRole(User user);

}
